package com.dinglian.ots.vo.cart;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wangbo
 */
@Data
public class CartVo {

    @NotNull(message = "产品ID不能为空")
    private Integer productId;

    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @Valid
    @NotNull
    private List<CartSkuVo> skuList;
}
